<template>
  <view class="other-upload-detail p_bg_f3">
    <rich-text :nodes="content"></rich-text>
  </view>
</template>

<script>
  import { format } from '../../utils/rich-text';
  export default {
    data() {
      return {
        content: ''
      };
    },
    onLoad(options) {
      const obj = {
        qq: 'QQ打印步骤',
        wps: 'WPS打印步骤'
      }
      uni.setNavigationBarTitle({
        title: obj[options.type]
      })
      this.$http.post(this.$api.image_info).then(res => {
        this.content = format(res.data[`${options.type}_content`]);
      })
    }
  }
</script>

<style lang="scss">
.other-upload-detail {
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
  padding: 24rpx 32rpx;
  line-height: 1.5;
  font-size: 32rpx;
}
</style>
